package modules.hero.view
{
	import modules.hero.view.component.HeroModule;
	
	import org.robotlegs.utilities.modular.mvcs.StarlingModuleMediator;
	
	public class HeroModuleMediator extends StarlingModuleMediator
	{
		[Inject]
		public var view:HeroModule;
		
		public function HeroModuleMediator()
		{
			super();
		}
		
		override public function onRegister():void
		{
			addViewListener("shutDown", onShut);
		}
		
		private function onShut():void
		{
			view.destroy();
		}
		
		override protected function cleanUp():void
		{
		}
	}
}